package com.tjbklx1.pattern.bridge.demo1;

import org.junit.Test;

public class Client {
	@Test
	public void test1() {
		System.out.println("-------房地产公司是这样运行的-------");
		HouseCorp houseCorp = new HouseCorp();
		houseCorp.makeMoney();
		System.out.println("\n");

		System.out.println("-------服装公司是这样运行的-------");
		ClothesCorp clothesCorp = new ClothesCorp();
		clothesCorp.makeMoney();
	}

	@Test
	public void test2() {
		System.out.println("-------房地产公司是按这样运行的-------");
		// 先找到我的公司
		HouseCorp houseCorp = new HouseCorp();
		// 看我怎么挣钱
		houseCorp.makeMoney();
		System.out.println("\n");
		System.out.println("-------山寨公司是按这样运行的-------");
		IPodCorp iPodCorp = new IPodCorp();
		iPodCorp.makeMoney();

	}
}